home *** CD-ROM | disk | FTP | other *** search
- Path: newsfeed.internetmci.com!panix!not-for-mail
- From: richk@panix.com (Rich Kus)
- Newsgroups: comp.unix.shell,comp.lang.c
- Subject: Re: slowing it down
- Date: 27 Jan 1996 21:03:09 -0500
- Organization: panix
- Message-ID: <4eelgt$mca@panix2.panix.com>
- References: <4ebh99$5q9@monmouth.edu> <9601270012.AA09395@dxmint.cern.ch>
- NNTP-Posting-Host: panix2.panix.com
-
- In article <9601270012.AA09395@dxmint.cern.ch>,
- Dan Pop <danpop@mail.cern.ch> wrote:
- >s0213031@moncol.monmouth.edu (RAJIV RODRIGUES) writes:
- >
- >>I ran a simple 'cat' on a DEC ALPHA (Digital Unix) to display a long (!) file.
- >>I'm looking for some way to slow down ( not a pager ) the listing, so that
- >>it scrolls at a comfortable speed. I tried a 'nice' at lowest priority with
- >>no discernable effect.
- >>
- >>Anyone know any other utilities I could use?
- >
- >The right tool for this job is a serial terminal. You can control the
- >scrolling speed by playing with the baud rate :-) Or by enabling smooth
- >scroll (if available).
- >
- >Another solution is to write your own 'cat', which waits a certain amount
- >of time before displaying a new line. The usleep function (nonstandard,
- >but available on your platform) is all you need for the job.
- >
- >Dan
- >--
- >Dan Pop
- >CERN, CN Division
- >Email: danpop@mail.cern.ch
- >Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-
- if you have access to perl try the following command.
-
- perl -e 'while (<>) { print; sleep 1 }' filename
-
- this will print 1 line a minute.
-
- richk
-
-